<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js</title>
</head>
<body>
	<table width='700px' border='1px' cellspacing='0' id='tid'>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
		<tr>
			<td>111</td>
			<td>111</td>
			<td>111</td>
		</tr>
	</table>
</body>

<script>
	tidobj=document.getElementById('tid');
	
	//tidobj.rows[1].cells[1].innerHTML='abc';//将第2行，第2格的值改为abc

	//将内容设置为函数
	function set(i,j){
		tidobj.rows[i-1].cells[j-1].innerHTML='abc';
	}

	set(3,2);
</script>
</html>